package com.novax.ex.activity.open.api.inner;

import com.novax.ex.activity.open.model.request.task.TaskEtRewardsConfigRequest;
import com.novax.ex.activity.open.model.request.task.TaskRuleRequest;
import com.novax.ex.activity.open.model.response.task.TaskEtRewardsConfigResponse;
import com.novax.ex.activity.open.model.response.task.TaskRuleResponse;
import com.novax.ex.common.results.ReturnResult;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.tags.Tag;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.validation.BindingResult;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestHeader;

import jakarta.validation.Valid;
import java.util.List;

/**
 * @Description 后管 ET解锁难度设定表
 * @Author ChenXi
 * @Date 2023/06/25/10:18
 */

@Tag(name = "后台 新手引导ET解锁难度设定表", description = "后台 ET解锁难度设定表")
@FeignClient(url = "${remote.activity-service.endpoint}", name = "TaskEtRewardsConfigApi", contextId = "TaskEtRewardsConfigApi")
public interface TaskEtRewardsConfigApi {

    @Operation(summary = "ET解锁难度查询")
    @GetMapping(value = "/v3/private/task/et/rewards")
    ReturnResult<TaskEtRewardsConfigResponse> query();

    @Operation(summary = "ET解锁难度编辑")
    @PostMapping(value = "/v3/private/task/et/rewards/{id}")
    ReturnResult<?> modify(@RequestHeader("language") String language,
                           @PathVariable Long id,
                           @RequestBody @Valid TaskEtRewardsConfigRequest taskEtRewardsConfigRequest,
                           BindingResult bindingResult);


}
